import axios from "@/plugins/axios";
const { http } = axios;

export const login = {
  post: params => http.post("/login", params)
};
export const loginSms = {
  post: params => http.post("/user/login/sms", params)
};
export const logout = {
  post: params => http.post("/user/logout", params)
};
export const getInfo = {
  get: params => http.get("/user/info", params)
};
// 获取员工列表
export const getList = {
  post: params => http.post("/user/list", params)
};
// 添加员工
export const userSave = {
  post: params => http.post("/user/add", params)
};
// 添加员工
export const editUserStatus = {
  post: params => http.post("/user/forbidden", params)
};
// 修改密码
export const editPwd = {
  post: params => http.post("/user/mod", params)
};
// 重置员工密码
export const resetPwd = {
  post: params => http.post("/user/reset", params)
};
// 重置支付密码
export const resetPayPwd = {
  post: params => http.post("/user/pay/password/set", params)
};
// 获取工号
export const getJobNumber = {
  get: params => http.get("/user/account", params)
};
// 获取余额
export const getPayAvailable = {
  get: params => http.get("/user/available", params)
};
// 短信
export const getSms = {
  get: params => http.get("/user/sms", params)
};